Skip to content

Minor clean up of extra given? method#726

Merged
etagwerker merged 1 commit into
DatabaseCleaner:mainfrom
abitrolly:patch-1
Jun 1, 2026
Merged

Minor clean up of extra given? method#726
etagwerker merged 1 commit into
DatabaseCleaner:mainfrom
abitrolly:patch-1

Conversation

@abitrolly
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an extra indirection method (given?) from the DatabaseCleaner::Safeguard::RemoteDatabaseUrl check and inlines the remote? predicate call, keeping the safeguard behavior the same while simplifying the class.

Changes:

  • Inline remote?(ENV['DATABASE_URL']) directly in RemoteDatabaseUrl#run.
  • Remove the now-redundant given? private method from RemoteDatabaseUrl.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@etagwerker etagwerker merged commit 09b47d0 into DatabaseCleaner:main Jun 1, 2026
7 checks passed
@abitrolly abitrolly deleted the patch-1 branch June 1, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants